import { post } from '../../common/http/http.service'

export interface TagVo {
  id: string;
  name: string;
  pid?: string;
  icon?: string;
  selected?: boolean;
  children: TagVo[];
}

export class TagService {

  // 故事标签
  tree(): Promise<TagVo> {
    return post('/story/tag/tree', {});
  }

  // 查询树形标签信息
  newTree(): Promise<TagVo> {
    return post('/story/api/tag/tree', {});
  }
}